<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<ul>
	<li class="logo"><h2><a href="${pageContext.request.contextPath}">Enqu&ecirc;te App</a></h2></li>
	
	<c:choose>
	<c:when test="${form}">
		<c:forEach var="linkBean" items="${headerLinks}">
			<li><input <c:if test="${linkBean.selected}">class="selected"</c:if> type="submit" name="${linkBean.link}" value="${linkBean.name}" /></li>
		</c:forEach>
	</c:when>
	<c:otherwise>
		<c:forEach var="linkBean" items="${headerLinks}">
			<li><a <c:if test="${linkBean.selected}">class="selected"</c:if> href="${linkBean.link}">${linkBean.name}</a></li>
		</c:forEach>
	</c:otherwise>
	</c:choose>
	
	<li class="logout"><a href="<c:url value="${request.contextPath}/logout" />">Log uit</a></li>
	<li class="right">Welkom, ${user.firstname} ${user.name}</li>
</ul>